#!/usr/bin/python

"""judge_updown.py

this script is
"""

__author__ = 'takahiro'
__version__ = '2014-02-10 1.00 (takahiro)'

import sys
import optparse

usage = "%prog [options] [filename]"
parser = optparse.OptionParser( usage=usage )
parser.parse_args( )

if len( sys.argv ) == 1:
  stream = sys.stdin
elif len( sys.argv ) == 2:
  stream = open( sys.argv[ 1 ], 'r' )
else:
  parser.print_help( )
  exit( )

UP = 1
FLAT = 0
DOWN = -1

prev = 0
for line in stream:
  value = int(line.rstrip())
  if prev == 0 or value == prev:
    print FLAT
  elif value > prev:
    print UP
  else:
    print DOWN

  prev = value

